# To change this template, choose Tools | Templates
# and open the template in the editor.

__author__="cstabb"
__date__ ="$Mar 12, 2010 10:17:07 PM$"

def PrintAspectRatios(ratio_x = 16.0, ratio_y = 10.0) :
    """Print all possible resolutions (mod 10) for the given aspect ratio"""
    x = 1.0
    y = 1.0
    ratio = ratio_x / ratio_y
    print 'ratio:', ratio
    while x < 2000:
        #print 'x =', x
        while y < 2000:
            #print 'y =', y
            if ((x / y) == ratio) and (x % 10 == 0) and (y % 10 == 0) :
                print int(x), ':', int(y), 'use',int(x/10),'x',int(y/10)
            y +=1
        y = 1.0
        x += 1


PrintAspectRatios()